package com.ttn.auth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.ApplicationPidFileWriter;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.ttn.auth.mapper")
@ComponentScan({"com.ttn.auth", "com.ttn.common.core"})
@EnableFeignClients
public class AuthApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(AuthApplication.class);
        app.addListeners(new ApplicationPidFileWriter());
        app.run(args);
    }

}